{% extends "base.html" %}
{% block title %}Faraja Cancer - Newsletter{% endblock title %}

{% block extrahead %}
<script>
	$(document).ready(function(){
		$("#id_date_of_birth").datepicker();
	});
</script>
{% endblock extrahead %}
{% block content %}
	<div class="container_12 clearfix">
		<div id="content_wrapper">
        	<div class="grid_12 page_title">
            	<h1>Newsletter</h1>
                    <div class="page_navigation">
                        <ul>
                            <li><a href="#">Home</a></li>
                            <li class="active"><a href="#">Newsletter</a></li>
                        </ul>
                    </div>
            </div>        
            <div id="content" class="grid_9">
		{% if success %}
		<div id="notification_2" class="notification success closeable" style="display: block;">
                    	<p><span>Success!</span> Your subscription is complete. Now Faraja News will come directly to your email</p>
                    	<a class="close" href="#"></a>
                </div>
		{% endif %}
			
                <div class="content_single">
		
			<div class="single_content subscriber">
				<form method='POST' action=''>
				{% csrf_token %}
				<div class="title">
					<h3>Required Information</h3>
				<div class="content_inner divider">
				<p>Please fill in your info on the form below to subscribe to our newsletter.</p>
				{% for field in subscriber_form %}
				{% if forloop.counter = 3 %}
				</div>
					<div class="content_inner divider">	
					<h3>Optional Information</h3>
				{% endif %}
				<p>
					{{ field.label_tag }}
					
					{{ field }}{{ field.errors }}
				</p>
				{% endfor %}
				</div>
				</div>
				<input type="submit" value="Subscribe me!">
				</form>
			</div>
		</div>
          </div>
            <div id="sidebar" class="grid_3">                
                <div class="sidebar_wrapper">
                	<div class="sidebar_widget">
                    	<h4><span>Quicklinks</span></h4>
                		<ul>
                            <li><a href="#">Download our Brochures</a></li>
                            <li><a href="#">Newsletter</a></li>
                            <li><a href="/donate">Donate</a></li>
                            <li><a href="/news">News</a></li>
                        </ul>
                	</div>
                    
                </div>
            </div>
        </div>
	</div>

{% endblock content %}